<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			/*子选择器*/
			#content>p:nth-child(2) {
				background: #FF0;
			}
			/*相邻选择器*/
			#content+p {
				color: #F00;
			}
			/*包含选择器*/
			div#content p {
				color: #555;
			}

		</style>
	</head>
	<body>
		<div id="content">
			<p>123</p>
			<p>435</p>
			<p>789</p>
			<div>
				<p>aaa</p>
				<p>bbb</p>
			</div>
		</div>
		<p>a123</p>
		<p>a435</p>
		<p>a789</p>

	<div><script language="javascript">

	</script></div></body>
</html>
